import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser('')

WebUI.navigateToUrl('https://park.yunqilaohe.com/#/user/login')

WebUI.setText(findTestObject('Object Repository/add_project/input__phone'), '15520356897')

WebUI.setEncryptedText(findTestObject('Object Repository/add_project/input__password'), '65wM4l038bZbmoCh5XJpKg==')

WebUI.click(findTestObject('Object Repository/add_project/button_loginsumit'))

WebUI.click(findTestObject('Object Repository/add_project/img__ant-dropdown-trigger logo_park_icon___3BKJy'))

WebUI.click(findTestObject('Object Repository/add_project/span_yuanqu_sel'))

WebUI.click(findTestObject('Object Repository/add_project/p_'))

WebUI.click(findTestObject('Object Repository/add_project/span__1'))

WebUI.click(findTestObject('Object Repository/add_project/span__1_2'))

WebUI.setText(findTestObject('Object Repository/add_project/input__companyName'), '项目新增测试123')

WebUI.setText(findTestObject('Object Repository/add_project/input__custName'), '测试')

WebUI.setText(findTestObject('Object Repository/add_project/input__custTel'), '17763647584')

WebUI.click(findTestObject('Object Repository/add_project/input__dataSource'), FailureHandling.STOP_ON_FAILURE)

WebUI.click(findTestObject('Object Repository/add_project/span__source_sel'))

WebUI.click(findTestObject('add_project/input__responsibleDept_click'))

WebUI.click(findTestObject('add_project/div_zsb_sel'))

WebUI.click(findTestObject('add_project/input__principal_click'))

WebUI.click(findTestObject('add_project/div_fzr_sel2'))

WebUI.click(findTestObject('add_project/button_project_submit'))

WebUI.waitForPageLoad(0)

WebUI.click(findTestObject('add_project/input__ant-checkbox-input'))

WebUI.click(findTestObject('add_project/button_adopt'))

